package com.cet.designpatterns.flyweight;

/**
 * @program: algorithm
 * @description: 内部状态
 * @author: 陈恩涛
 * @create: 2021-09-14 14:19
 **/
public class ConcreteWebsite extends Website {

    private String type ;

    public ConcreteWebsite(String type) {
        this.type = type;
    }

    @Override
    public void use(User user) {
        System.out.println("网站的发布形式为:" + type + ", " + user.getName() + "正在使用...");
    }
}
